﻿<%@ Page Title="Gerenciamento de Contas" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Contas.aspx.cs" Inherits="Financeiro.Contas" EnableEventValidation="true" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Gerenciamento de Contas
    </h2>
    <br />
    <div style="float:left;">
        <h3>Contas a Receber</h3>
        <asp:GridView ID="gridContasReceber" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="id_conta" 
            OnRowDataBound="gridContasReceber_RowDataBound" 
            EmptyDataText="There are no data records to display.">
            <Columns>
                <asp:BoundField DataField="id_conta" Visible="false" HeaderText="ID" ReadOnly="True" 
                    SortExpression="id_conta" />
                <asp:BoundField DataField="valor" HeaderText="Valor" SortExpression="valor" />
                <asp:BoundField DataField="data_criacao" HeaderText="Data de Criação" 
                    SortExpression="data_criacao" />
                <asp:BoundField DataField="data_vencimento" HeaderText="Data de Vencimento" 
                    SortExpression="data_vencimento" />
                <asp:BoundField DataField="id_atendimento" HeaderText="ID Atendimento" 
                    SortExpression="id_atendimento" />
                <asp:BoundField DataField="status_string" HeaderText="Status" 
                    SortExpression="status_string" />
            </Columns>
        </asp:GridView>
    </div>
    <div style="float:left; margin-left: 40px;">
        <h3>Contas a Pagar</h3>
        <asp:GridView ID="gridContasPagar" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="id_conta"
            OnRowDataBound="gridContasPagar_RowDataBound" 
            EmptyDataText="There are no data records to display.">
            <Columns>
                <asp:BoundField DataField="id_conta" Visible="false" HeaderText="ID" ReadOnly="True" 
                    SortExpression="id_conta" />
                <asp:BoundField DataField="valor" HeaderText="Valor" SortExpression="valor" />
                <asp:BoundField DataField="data_criacao" HeaderText="Data de Criação" 
                    SortExpression="data_criacao" />
                <asp:BoundField DataField="data_vencimento" HeaderText="Data de Vencimento" 
                    SortExpression="data_vencimento" />
                <asp:BoundField DataField="status_string" HeaderText="Status" 
                    SortExpression="status_string" />
            </Columns>
        </asp:GridView>
    </div>
    <div style="margin-top:30px; float:left; width:100%">
        <asp:Button ID="btnCriarConta" runat="server" Text="Criar Conta" 
            onclick="btnCriarConta_Click" />
        <asp:Button ID="btnTeste" runat="server" Text="Teste" 
            onclick="btnTeste_Click" />
        <asp:Label ID="lblSaldo" runat="server" Text="Saldo:"></asp:Label>
        <asp:Label ID="valorSaldo" runat="server" Text="111"></asp:Label>
    </div>
</asp:Content>
